#first dockerfile
FROM node:latest as builder

ENV PROJECT_ENV production

WORKDIR /code

ADD . /code
RUN npm install
RUN npm run build

# 选择更小体积的基础镜像
FROM nginx:alpine
COPY --from=builder /code/public /usr/share/nginx/html
# docker build -t wall-breaker .